package chixing.day06;

public class OnlineOrder extends Order {
    private String email;
    public OnlineOrder()
    {
        super();
    }
    public OnlineOrder(int orderId, int amount, String email)
    {
        super(orderId, amount);
        this.email = email;
    }
    public void printOnlineOrder()
    {
        super.printOrder();
        System.out.println("Email: " + email);
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
}
